package com.hongdee.scm.monthlybalance.service;

import com.hongdee.scm.monthlybalance.entity.TScmDiffCar;
import com.hongdee.scm.monthlybalance.entity.TScmDifferCost;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by Mr. Xu on 2017/6/26.
 */
public interface ITScmMonthlyBalanceService {

    //申请月结按钮
    public void applyMonthlyBalance(String uid,String date) throws  Exception;
    //月结按钮
    public void monthlyBalance(String uid,String date ) throws Exception;
    //反月结按钮
    public void unMonthlyBalance(String uid,String id  ) throws Exception;
    //成本差异表通过
    public void confirmCostDiff(String uid,String date) throws Exception;
    /**
     * 月结分页
     *
     * @param data
     * @param start
     * @param limit
     * @param uid
     * @return
     * @throws Exception
     */
    public Map manginsPage(Map data, String start, String limit, String uid) throws Exception;
    /**
     * 成本差异
     * @param date 格式为201706
     * @param uid
     * @return
     * @throws Exception
     */
    public Map monthCostDiff (String date ,String uid,String limit,String start) throws Exception;

    public Map diffCar(String start,String limit,Map data,String uid) throws Exception;

    public boolean ifMonthlyBalance(String companyId,Date date) throws Exception;

    public List<TScmDifferCost> findList(String uid, String date) throws Exception;

    public HSSFWorkbook exportCost(List<TScmDifferCost> list, String uid) throws Exception;

    public List<TScmDiffCar> findLists(String uid, String date) throws Exception;

    public HSSFWorkbook exportDiffCar(List<TScmDiffCar> list, String uid) throws Exception;

    public boolean ifMonthBalace(String uid) throws Exception;

}
